package com.iot.ic.dao;

import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import com.iot.ic.model.ManualIntervention;
@Mapper
public interface ManualInterventionMapper {
    int deleteByPrimaryKey(Integer manualInterveneId);

    int insert(ManualIntervention record);

    int insertSelective(ManualIntervention record);

    ManualIntervention selectByPrimaryKey(Integer manualInterveneId);

    int updateByPrimaryKeySelective(ManualIntervention record);

    int updateByPrimaryKey(ManualIntervention record);
    
    int deleteManualIntervention(Integer manualInterveneId);
    
    List<ManualIntervention> listManualInterventionByScenes(Integer scenesResultId);
    
    List<Map<String, Object>> listManualInterventionByCount(@Param("count") int count, @Param("teamId") int teamId,
    		@Param("startTime") String startTime,  @Param("endTime") String endTime);
}